Computer Configuration > Administrative Templates > Firefox > Clear data when browser is closed
Both
HKLM\Software\Policies\Mozilla\Firefox\SanitizeOnShutdown
If the policy is enabled, offline application storage is cleared when the browser is closed. If this policy is disabled or not configured, offline application storage is not cleared when the browser is closed.